<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>book</title>
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-touch-fullscreen" content="yes">
  <meta name="format-detection" content="telephone=no, email=no">

  <meta name="wap-font-scale" content="no">
  <meta name="aplus-touch" content="1">
  <meta name="aplus-terminal" content="1">
  <meta name="do-rem-meta-change" content="false">

  <meta name="full-screen" content="yes">
  <meta name="browsermode" content="application">

  <meta name="x5-orientation" content="portrait">
  <meta name="x5-fullscreen" content="true">
  <meta name="x5-page-mode" content="app">
  <meta name=”HandheldFriendly” content=”true”>
  <!– 微软的老式浏览器 –>
  <meta name=”MobileOptimized” content=”320″>
    <link href="{{ url_for('static',filename='image/favicon.ico') }}" rel="shortcut icon" />
  <script>

  </script>
  <style>
    html, body {
      -ms-overflow-style: scrollbar;
      -webkit-tap-highlight-color: transparent;
      padding: 0;
      margin: 0;
      width: 100%;
      height: 100%;
    }
    body::before {
      content: "1";
      height: 1px;
      overflow: hidden;
      color: transparent;
      display: block;
    }
    body {
      overflow-y: hidden;
    }
  </style>
<script type="text/javascript" src="{{ url_for('static',filename='js/index.81000637f9d3ecb7cbed.bundle.js') }} " defer></script>
    <script type="text/javascript" src="{{ url_for('static',filename='js/vendor.330e619bd82e5b54b4ca.bundle.js') }}" defer></script>
</head>
<body>
  <div id="root" class="root"></div>
</body>
<script>
    function launchFullScreen(element) {
        if (element.requestFullscreen) {
            element.requestFullscreen();
        } else if (element.mozRequestFullScreen) {
            element.mozRequestFullScreen();
        } else if (element.webkitRequestFullscreen) {
            element.webkitRequestFullscreen();
        } else if (element.msRequestFullscreen) {
            element.msRequestFullscreen();
        }
    }

    var overscroll = function(el){
        el.addEventListener('touchstart', function(){
            var top = el.scrollTop;
            var totalScroll = el.scrollHeight;
            var currentScroll = top + el.offsetHeight;
            if(top === 0) {
                el.scrollTop = 1;
            }else if(currentScroll === totalScroll){
                el.scrollTop = top - 1;
            }
        });
        el.addEventListener('touchmove', function(evt){
            if(el.offsetHeight < el.scrollHeight){
                evt._isScroller = true;
            }
        });
    }
    overscroll(document.querySelector('.root'));//哪里需要可以局部滚动，添加一个“scroll”的class
    document.body.addEventListener('touchmove', function(evt) {
        if(!evt._isScroller){
            evt.preventDefault();
        }
    });
</script>

</html>
